package com.sarnath.sardoop.common.bean;

import java.util.HashMap;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class Response extends HashMap<String, Object> {
	private static final long serialVersionUID = -7740558793511913382L;
	public Response(){
		super();
		setStatus(0);
		setMsg("success");
	}
	
	/**
	 * 0：成功
	 * 1：失败
	 */
	@JsonIgnore
	public int getStatus() {
		return Integer.parseInt(get("status").toString());
	}
	public void setStatus(int status) {
		put("status",status);
	}
	@JsonIgnore
	public String getMsg() {
		return get("msg").toString();
	}
	public void setMsg(String msg) {
		put("msg",msg);
	}
	
}
